home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / lingua13.zip / LINGDEMO.C < prev    next >
C/C++ Source or Header  |  1994-03-13  |  1KB  |  36 lines

  1. /* --------------------------------------------*\
  2. | lingdemo.c (version 1.3)  (C) SichemSoft 1994 |
  3. | Roghorst 160, 6708 KS Wageningen, Netherlands |
  4. | example for language independent applications |
  5. | author: Anneke Sicherer-Roetman, date: 940311 |
  6. \* --------------------------------------------*/
  7.  
  8. #include <stdio.h>
  9. #include <string.h>
  10. #include "ui_text.h"
  11.  
  12. int main(int argc,char *argv[])
  13. {
  14.    char filename[81],version[81];
  15.  
  16.    if (argc>3) return 1;
  17.    if (argc==3) strcpy(version,argv[2]); else version[0]='\0';
  18.    if (argc>=2) strcpy(filename,argv[1]); else strcpy(filename,"english");
  19.  
  20.    if (ui_loadtext(filename,version)) {
  21.       printf("%s",FIRST);
  22.       printf("%s",SECOND);
  23.       printf("%s",THIRD[0]);
  24.       printf("%s",THIRD[1]);
  25.       printf("%s",THIRD[2]);
  26.       printf("%s",THIRD[3]);
  27.       printf("%s",THIRD[4]);
  28.       printf("%s",EIGHTH);
  29.       printf("%s",NINTH);
  30.       printf("%s",TENTH);
  31.       printf("%s",ELEVEN);
  32.       ui_unloadtext();
  33.    } else puts("Fatal error");
  34.    return 0;
  35. }
  36.